Skip to content

Enable horizontal scrolling in todo list widget#655

Merged
multiplex55 merged 1 commit intomasterfrom
codex/update-scroll-area-to-allow-horizontal-expansion
Jan 8, 2026
Merged

Enable horizontal scrolling in todo list widget#655
multiplex55 merged 1 commit intomasterfrom
codex/update-scroll-area-to-allow-horizontal-expansion

Conversation

@multiplex55
Copy link
Copy Markdown
Owner

Motivation

  • Long todo text and tag lists could wrap and not allow horizontal scrolling, making entries hard to read.
  • The intent is to allow horizontal expansion/scrolling so long entries and tags remain on one line.

Description

  • Replace egui::ScrollArea::vertical() with egui::ScrollArea::both() and keep .auto_shrink([false; 2]) to allow horizontal scrolling.
  • Add a per-row minimum width using let min_row_width = ui.available_width().max(400.0); and apply it with ui.set_min_width(min_row_width) so rows can expand horizontally.
  • Prevent wrapping for todo text and tag labels by using ui.add(egui::Label::new(...).wrap(false)) for both the entry text and tags.
  • Preserve existing checkbox, priority display, and "Open" button behavior while enabling horizontal scroll.

Testing

  • No automated tests were executed for this change.

Codex Task

@multiplex55 multiplex55 merged commit 6b19e61 into master Jan 8, 2026
1 check passed
@multiplex55 multiplex55 deleted the codex/update-scroll-area-to-allow-horizontal-expansion branch January 9, 2026 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant